﻿using System;
using System.Collections.Generic;
using BotonJXC.Entity;
using ProductDAO = BotonJXC.DAO.ProductDAO;
using BotonJXC.Util;

namespace BotonJXC.BLL
{
    public class ProductBLL : BaseBLL<ProductDAO, Product, int>
    {
        public ProductBLL()
        {
            
        }
        public PageModel<Product> Find(int typeId, string code, string name, string barcode, string spec, int start, int count)
        {
            return Dao.Find(typeId, code, name, barcode, spec, start, count);
        }

        public bool CheckExists(Product product)
        {
            return Dao.CheckExists(product);
        }
        public Product FindProduct(string parameter, string value)
        {
            return Dao.FindProduct(parameter, value);
        }

        public Product GetProductByCode(string productcode)
        {
            return Dao.findproductbycode(productcode);
        }

    }
}